

    \filetitle{select}{Select submatrix by referring to row names and column names}{namedmat/select}

	\paragraph{Syntax}\label{syntax}

\begin{verbatim}
[XX,Pos] = select(X,RowSelect,ColSelect)
[XX,Pos] = select(X,Select)
\end{verbatim}

\paragraph{Input arguments}\label{input-arguments}

\begin{itemize}
\item
  \texttt{X} {[} namedmat {]} - Matrix or array with named rows and
  columns.
\item
  \texttt{RowSelect} {[} char \textbar{} cellstr {]} - Selection of row
  names.
\item
  \texttt{ColSelect} {[} char \textbar{} cellstr {]} - Selection of
  column names.
\item
  \texttt{Select} {[} char \textbar{} cellstr {]} - Selection of names
  that will be applied to both rows and columns.
\end{itemize}

\paragraph{Output arguments}\label{output-arguments}

\begin{itemize}
\item
  \texttt{XX} {[} namedmat {]} - Submatrix with named rows and columns.
\item
  \texttt{Pos} {[} cell {]} - \texttt{Pos\{1\}} is av ector of rows
  included in the submatrix \texttt{XX},
  \texttt{Pos\{2\} is a vector of columns included in the submatrix}XX`.
\end{itemize}

\paragraph{Description}\label{description}

\paragraph{Example}\label{example}


